package com.cup.common.logging;



public class Logger {
	private org.apache.log4j.Logger logger;
	
	private Logger(org.apache.log4j.Logger logger) {
		this.logger = logger;
	}
	
	public static Logger getLogger(Class class1) {
		return new Logger(org.apache.log4j.Logger.getLogger(class1));
	}

	public void warn(String string) {
		logger.warn(string);
	}

	public void debug(String string) {
		logger.debug(string);
	}

	public static Logger getLogger(String string) {
		return new Logger(org.apache.log4j.Logger.getLogger(string));
	}

	public void error(String string) {
		logger.error(string);
	}

	public void error(String message, Exception e) {
		logger.error(message, e);
	}

	public void error(Exception e) {
		logger.error(e);
	}

	public void errorWithUDP(String string, String moduleLdap) {
		logger.error("moduleLdap:" + moduleLdap + "|" + string);
	}

	public void info(String string) {
		logger.info(string);
	}

}
